﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Ponguizinho.Game
{
    class GERENCIADOR
    {
        public enum Cena
        { MENU, JOGO }
        public static Cena cenaAtual;

        public static KeyboardState tecladoAtual;

        private PONG.PongGame game;

        public GERENCIADOR(ContentManager Content)
        {
            cenaAtual = Cena.JOGO;
            game = new PONG.PongGame(Content);
        }
        public void Update(GameTime gameTime)
        {
            tecladoAtual = Keyboard.GetState();
            switch (cenaAtual)
            {
                case Cena.JOGO:
                    game.Update(gameTime);
                    break;
            }
        }
        public void Draw(SpriteBatch spriteBatch)
        {
            switch (cenaAtual)
            {
                case Cena.JOGO:
                    game.Draw(spriteBatch);
                    break;
            }
        }
    }
}
